﻿using NetMicro.ExcelMapper.Attributes;

namespace NetMicro.ExcelMapper
{
    /// <summary>
    /// 列映射
    /// </summary>
    public interface IColumnInfo
    {
        /// <summary>
        /// 列标题的值
        /// </summary>
        object HeaderValue { get; set; }

        /// <summary>
        /// 列属性相关
        /// </summary>
        ColumnAttribute Attribute { get; }

        /// <summary>
        /// 最后一个非空白单元格值
        /// </summary>
        object LastNonBlankValue { get; set; }

        /// <summary>
        /// 当前单元格值可能用于自定义解析
        /// </summary>
        object CurrentValue { get; set; }

        /// <summary>
        /// 获取标题单元格格式
        /// </summary>
        short? HeaderFormat { get; set; }

        /// <summary>
        /// 获取数据单元格格式
        /// </summary>
        short? DataFormat { get; set; }
    }
}
